#include "ht.h"

#include <iostream>
#include <fstream>
#include <iomanip>

using namespace std;

int main(int argc, char **argv) {
  if (argc != 2) {
    cerr << "Usage " << argv[0]
	 << " image_file" << endl;
    return 0;
  }

  hash_table H(hash_division,3001,1.0);

  const int SIZE=512;
  char descripcion[SIZE];
  fstream fi_image(argv[1],ios::in); // modo lectura
  ImagenColor* ima = new ImagenColor(fi_image);
  fi_image.close();
  H.insert(ima, descripcion);
  delete ima;

  return 0;
}

